<?php
/**
 * @description : new class of WebServiceClient.
 * @class-name : MstatWebServiceClient().
 * @author : stephen.mo <stephen.mo@achievo.com>
 * @date : 2010-04-02
 */
class MstatWebServiceClient extends WebServiceClient {

    static function getKey() {
        $config = ConfigReaderFactory::getInstance()->getConfigReader(MstatWebServiceClientConfig::WEB_SERVICE_CONFIG_FILE)->getConfig();
        return $config->key;
    }

    public function __construct() {
        $config = ConfigReaderFactory::getInstance()->getConfigReader(MstatWebServiceClientConfig::WEB_SERVICE_CONFIG_FILE)->getConfig();
        $url = (string)$config->url;
        $key = (string)$config->key;
        $ws_ver = (string)$config->version;
        parent::__construct($url, $key, $ws_ver, TRUE);
    }

    public function __call($name, $arguments) {
        return $this->invoke("MstatWebServiceServer::{$name}", $arguments);
    }
   
   
}
?>

